package com.qf.pojo;

import com.qf.dao.ProductDao;
import com.qf.dao.impl.ProductDaoImpl;
import com.qf.service.AdminService;
import com.qf.service.CategoryService;
import com.qf.service.ProductService;
import com.qf.service.impl.AdminServiceImpl;
import com.qf.service.impl.CategoryServiceImpl;
import com.qf.service.impl.ProductServiceImpl;
import com.qf.utils.JsonUtils;

import java.sql.SQLException;
import java.util.List;

public class test {
    public static void main(String[] args) throws SQLException {
//        ProductDao productDao = new ProductDaoImpl();
//        List<Product> list = productDao.selectProduct();
////        System.out.println(list);
//        ProductService productService = new ProductServiceImpl();
//        List<Product> newList = productService.findProduct();
//        System.out.println(newList);
//        CategoryService categoryService = new CategoryServiceImpl();
//        List<Category> list = categoryService.findCategory();
//        System.out.println(list);
//        String str = JsonUtils.list2json(list);
//        System.out.println(str);
//        AdminService adminService = new AdminServiceImpl() ;
//        PageBean<User> pb = adminService.findUserByPage(currentPage, pageSize);
//        System.out.println(pb);
    }
}
